#include <cstdio>
#include <iostream>
using namespace std;

int main() {
	char str[101];
	fgets(str, 101, stdin);
	int count = 0;
	for (int i = 0; str[i] && str[i] != '\n'; i++ ) {
		if ('0' <= str[i] && '9' >= str[i]) {
			count++;
		}
	}
	cout << count++;
	return 0;
}